package com.teamit.service;

import java.util.List;

import com.teamit.dao.ContactDao;
import com.teamit.entity.Contact;

public class ContactService {
	private ContactDao cd=new ContactDao();
	public void update(String id,Contact contact){
		cd.update(id, contact);
	}
	public void save(Contact contact,String projectId){
		cd.save(contact, projectId);
	}
	public List<Contact> findByProjectId(String projectId){
		return cd.findByProjectId(projectId);
	}
	public Contact findById(String id){
		return cd.findById(id);
	}
	public void del(String id){
		cd.del(id);
	}
}
